{% comment %}1 首页{% endcomment %}
{% if template == 'index' %}
    <!-- Open Graph -->
    {% if seo.meta_title %}
        <meta property="og:title" content="{{ seo.meta_title }}"/>
    {% else %}
        <meta property="og:title" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if seo.meta_descript %}
        <meta property="og:description" content="{{ seo.meta_descript }}"/>
    {% else %}
        <meta property="og:description" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="https://{{ current_domain }}?utm_source=sns_share&utm_medium=open_graph"/>
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src }}"/>
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <!-- Open Graph End -->
    {% comment %}2 商品详情页{% endcomment %}
{% elsif template == 'product_detail' %}
    <!-- Open Graph -->
    <meta property="og:title" content="{{ product.title }}"/>
    {% if product.mini_detail %}
        <meta property="og:description" content="{{ product.mini_detail }}"/>
    {% else %}
        <meta property="og:description" content="{{ product.title }}"/>
    {% endif %}
    <meta property="og:type" content="product"/>
    <meta property="og:url"
          content="{{ routes.current_url }}?utm_source=sns_share&utm_medium=open_graph"/>
    {% if product.src %}
    <meta property="og:image" content="{{ product.src }}"/>
    {% else %}
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src }}"/>
    {% endif %}
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta property="og:price:amount" content="{{ product.variant.price }}"/>
    <meta property="og:price:currency" content="{{ storeConfig.currency_default }}"/>
    {% comment %}stock判断{% endcomment %}
    <meta property="og:availability" content="instock"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ product.title }}">
    {% if product.mini_detail %}
        <meta name="twitter:description" content="{{ product.mini_detail }}">
    {% else %}
        <meta name="twitter:description" content="{{ product.title }}">
    {% endif %}
    {% if product.src %}
    <meta name="twitter:image" content="{{ product.src }}"/>
    {% else %}
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src }}"/>
    {% endif %}
    <!-- Open Graph End -->
    {% comment %}3 博客页{% endcomment %}
{% elsif template == 'blog_detail' %}
    <!-- Open Graph -->
    <meta property="og:title" content=" {{ blog.title }} "/>
    {% if blog.descript %}
        <meta property="og:description" content="{{ blog.descript }}"/>
    {% else %}
        <meta property="og:description" content="{{ blog.title }}"/>
    {% endif %}
    <meta property="og:type" content="article"/>
    <meta property="og:url"
          content="https://{{ current_domain }}/blogs/{{ blog.handle }}?utm_source=sns_share&utm_medium=open_graph"/>
    {% if blog.src %}
    <meta property="og:image" content="{{ blog.src }}"/>
    {% else %}
    <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src }}"/>
    {% endif %}
    <meta property="og:site_name" content="{{ storeInfo.shop_name }}"/>
    <meta name="twitter:site" content="https://{{ current_domain }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ blog.title }}">
    {% if blog.descript %}
        <meta name="twitter:description" content="{{ blog.descript }}">
    {% else %}
        <meta name="twitter:description" content="{{ blog.title }}">
    {% endif %}
    {% if blog.src %}
        <meta property="og:image" content="{{ blog.src }}"/>
    {% else %}
        <meta property="og:image" content="{{ theme_config.global.sns_link_default_image.src }}"/>
    {% endif %}
    <!-- Open Graph End -->
{% endif %}